package im.entity;

import im.chattable.IChattable;

import java.util.ArrayList;
import java.util.List;



public class Protocol {
	
	private String msgType;
	private IChattable from;
	private IChattable to;
	private String content;
	private List<IChattable> users = new ArrayList<>();
	
	public Protocol(String msgType, IChattable from, IChattable to, String content,
			List<IChattable> users) {
		super();
		this.msgType = msgType;
		this.from = from;
		this.to = to;
		this.content = content;
		this.users = users;
	}
	public Protocol() {
		
	}
	
	public String getMsgType() {
		return msgType;
	}
	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}
	public IChattable getFrom() {
		return from;
	}
	public void setFrom(IChattable from) {
		this.from = from;
	}
	public IChattable getTo() {
		return to;
	}
	public void setTo(IChattable to) {
		this.to = to;
	}
	
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public List<IChattable> getUsers() {
		return users;
	}
	public void setUsers(List<IChattable> users) {
		this.users = users;
	}
	
	
	
}
